- if @certificates.present?
  - @certificates.each do |cert|
    = render :partial => 'certificate', :locals => {:certificate => Certificate.find_by_id(cert.id)}
%p{:style=>'page-break-after:always'}